package com.zyc.exception;

import com.zyc.enums.RpcErrorMessageEnum;

/**
 * @author zyc
 * @create 2022--05--09 11:04
 */
public class RpcException extends Exception {
    public RpcException(RpcErrorMessageEnum rpcErrorMessageEnum, String detail) {
        super(rpcErrorMessageEnum.getMessage() + ":" + detail);
    }

    public RpcException(String message, Throwable cause) {
        super(message, cause);
    }

    public RpcException(RpcErrorMessageEnum rpcErrorMessageEnum) {
        super(rpcErrorMessageEnum.getMessage());
    }

}
